guint complete_on_load : 1;
guint eat_tabs : 1;
guint eat_escape : 1;
- guint local_only : 1;
};
enum
GtkEntryCompletion *comp;
GtkCellRenderer *cell;
- chooser_entry->local_only = FALSE;
-
g_object_set (chooser_entry, "truncate-multiline", TRUE, NULL);
comp = gtk_entry_completion_new ();
GFile *folder_file,
char *dir_part)
{
- if (folder_file &&
- chooser_entry->local_only
- && !_gtk_file_has_native_path (folder_file))
- folder_file = NULL;
-
if (((chooser_entry->current_folder_file
&& folder_file
&& g_file_equal (folder_file, chooser_entry->current_folder_file))
gtk_editable_select_region (GTK_EDITABLE (chooser_entry), 0, (gint) len);
}
-void
-_gtk_file_chooser_entry_set_local_only (GtkFileChooserEntry *chooser_entry,
- gboolean local_only)
-{
- chooser_entry->local_only = local_only;
- refresh_current_folder_and_file_part (chooser_entry);
-}
-
-gboolean
-_gtk_file_chooser_entry_get_local_only (GtkFileChooserEntry *chooser_entry)
-{
- return chooser_entry->local_only;
-}
-
void
_gtk_file_chooser_entry_set_file_filter (GtkFileChooserEntry *chooser_entry,
GtkFileFilter *filter)
gboolean _gtk_file_chooser_entry_get_is_folder (GtkFileChooserEntry *chooser_entry,
GFile *file);
void _gtk_file_chooser_entry_select_filename (GtkFileChooserEntry *chooser_entry);
-void _gtk_file_chooser_entry_set_local_only (GtkFileChooserEntry *chooser_entry,
- gboolean local_only);
-gboolean _gtk_file_chooser_entry_get_local_only (GtkFileChooserEntry *chooser_entry);
void _gtk_file_chooser_entry_set_file_filter (GtkFileChooserEntry *chooser_entry,
GtkFileFilter *filter);
g_signal_connect_swapped (priv->location_entry, "hide-entry",
G_CALLBACK (location_entry_close_clicked), impl);
- _gtk_file_chooser_entry_set_local_only (GTK_FILE_CHOOSER_ENTRY (priv->location_entry), FALSE);
_gtk_file_chooser_entry_set_action (GTK_FILE_CHOOSER_ENTRY (priv->location_entry), priv->action);
_gtk_file_chooser_entry_set_file_filter (GTK_FILE_CHOOSER_ENTRY (priv->location_entry),
priv->current_filter);